package com.nebula.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.UrlShare;

public interface UrlShareMapper {
    int deleteByPrimaryKey(Integer id);
    
    int deleteByPrimartKeyMap(@Param("map") Map<String, List<Integer>> map);

    int insert(UrlShare record);

    int insertSelective(UrlShare record);

    UrlShare selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UrlShare record);

    int updateByPrimaryKey(UrlShare record);
    
    int checkKey(String key);
    
    int checkShortUrl(String surl);
    
    UrlShare selectInitInfo(String surl);
    
    List<UrlShare> selectByUsername(String username);
    
    List<UrlShare> selectPublicList();
    
    List<UrlShare> searchPublicList(String queries);
    
    int	selectTimesTampDiffDay(Map<String, Object> map);
    
    int	selectTimesTampDiffHour(Map<String, Object> map);
    
    int	selectTimesTampDiffMinute(Map<String, Object> map);

}